package r4.powtorka3;

import java.text.DateFormat;
import java.text.DateFormatSymbols;
import java.util.Calendar;
import java.util.GregorianCalendar;

public class DorotaUrodziny {

	public static void main(String[] args) {

		GregorianCalendar kalendarz = new GregorianCalendar();
		DateFormat dzienFormater = DateFormat.getDateInstance();
		DateFormat godzinaFormater = DateFormat.getTimeInstance();
		String[] dniTygodnia = new DateFormatSymbols().getWeekdays();
		String[] miesiace = new DateFormatSymbols().getMonths();

		kalendarz.set(1970, Calendar.JANUARY, 22);
		
		System.out.println(dzienFormater.format(kalendarz.getTime()));
		System.out.println(godzinaFormater.format(kalendarz.getTime()));
		System.out.println(dniTygodnia[kalendarz.get(Calendar.DAY_OF_WEEK)]);
		System.out.println(miesiace[kalendarz.get(Calendar.MONTH)]);

	}

}
